package IC.AST;

public class ClassField extends ASTNode
{
	private String _id;
	private Type _type;
	
	public ClassField(Interval interval, String id, Type type)
	{
		super(interval);
		GiveBirth(type);
		_id = id;
		_type = type;
	}
	
	public String GetID() { return new String(_id); }
	public Type GetASTType() { return _type; }
	public void SetASTType(Type type) { _type = type; }
	
	public Object Visit(Visitor visitor) { return visitor.Visit(this); }
}
